package com.work.game.utils;

import android.content.Context;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.bumptech.glide.load.resource.bitmap.RoundedCorners;
import com.bumptech.glide.request.RequestOptions;
import com.work.game.R;
import com.youth.banner.loader.ImageLoader;

/**
 * 图片加载
 */
public class GlideImageLoader extends ImageLoader {
    @Override
    public void displayImage(Context context, Object path, ImageView imageView) {
        //Glide 加载图片简单用法
        Glide
            .with(context)
            .load(path)
            .centerCrop()
            .into(imageView);
    }
}